<script src="{{ BBS_WEB_ROOT }}js/page.js" type="text/javascript"></script>
<div id="Content"><a title="Bookmark" class="Bookmark" rel="{{ tid }}" href="{{ BBS_WEB_ROOT }}bookmark.php?action=addbookmark"><span>*</span></a><h2><a href="{{ BBS_WEB_ROOT }}index.php?action=categories&fid={{ thread.fid }}">{{ first_post.forumname }}</a><span>&bull;</span>{{ first_post.subject }}</h2>
<ul id="Discussion">
   <li class="Comment" id="Comment_2">
      <ul class="Options">
      <li><strong>Options</strong>

         <ul>
            <li><a href="/bbs/vanilla/discussion/sink/2/7U04XLLRNDY2?Target=discussion%2F2%2Fwrtwrt" class="SinkDiscussion">Unsink</a></li>         </ul>
      </li>
   </ul>
         <ul class="Info">
      <li class="Author">
         <a href="{{ BBS_WEB_ROOT }}profile.php?author={{ first_post.authorid }}">{{ first_post.author }}</a>      </li>

      <li class="Created">
         发布时间 {{ thread.dateline }}</li>
               <li class="ReplyCount">
         回复 {{ thread.replies }} / 查看 {{ thread.views }}      </li>

         </ul>
   <div class="Body"><p>{{ first_post.message }}</p></div>
   <ul class="Replies Hidden"><li class="ReplyForm"><a href="/bbs/vanilla/post/reply/2" class="ReplyLink Hidden">Write a reply</a><form id="Form_Comment" method="post" action="/bbs/vanilla/post/reply" class="Hidden">

</form></li></ul></li>
<!--begin post list-->
{% for post in post_list.data %}
<li class="Comment Mine" id="Comment_4">
   <div class="CommentScore">{{ post.subject }}</div>   <ul class="Options">
      <li><strong>Options</strong>
         <ul>
            <li><a href="/bbs/vanilla/post/editcomment/4" class="EditComment">Edit</a></li>         </ul>

      </li>
   </ul>
         <ul class="Info">
      <li class="Author">
         <a href="{{ BBS_WEB_ROOT }}profile.php?author={{ first_post.authorid }}">{{ post.author }}</a>      
	  </li>
      <li class="Created">
      回复时间 {{ post.dateline }}    
	  </li>

         </ul>
   <div class="Body">{{ post.message }}</div>
</li>
{% endfor %}
<!--end post list-->
<!-- BEGIN pager -->
<script src="{{ BBS_WEB_ROOT }}js/page.js" language="javascript"></script>
<script language="javascript">
recordCount = {{post_list.recordCount}}; //总记录数
show = {{post_list.pageSize}}; //每页显示的记录数量
pageShow = 10; //每页显示的分页连接数量
pageCount = {{post_list.pageCount}}; //总页数
pageNow = {{post_list.page}}; //当前页数
tid={{tid}};
pageStr = "index.php?action=viewthread&tid="+tid+"&page=_page_"; //页面连接

document.write(showListPage(recordCount, show, pageShow, pageCount, pageNow, pageStr));
</script>
<!-- END pager -->
</ul>
<div id="CommentForm">
   <form id="Form_Comment" method="post" action="">
<div>
<input type="hidden" id="fid" name="fid" value="{{ first_post.fid }}" />
<input type="hidden" id="tid" name="tid" value="{{ first_post.tid }}" />
<label for="Form_Body" class="Heading">添加回复</label>
<p><label for="subject">标题:</label><input id="subject" class="InputBox" type="text" maxlength="100" name="post['subject']" /></p>
<p><label for="message">内容:</label><textarea id="message" name="message" rows="6" cols="100" class="TextBox"></textarea></p>
{% if BBS_USER_ID != '' %}
<input type="button" id="pub_post" name="pub_post" value="提交" class="Button" />
{% else %}
请您登录或注册之后才能发表评论!
{% endif %}
</div>
</form>
</div>
<div class="Back">
   <a href="javascript:history.go(-1);">返回</a>
</div>
</div>
<script src="{{ BBS_WEB_ROOT }}js/plugin/jquery.autogrow.js" type="text/javascript"></script>
<script src="{{ BBS_WEB_ROOT }}js/post.js" type="text/javascript"></script>
